<?php

namespace app\validate;

use think\Validate;

class OrderEnterCert extends Validate
{
    protected $rule = [
        'aliasId|别名' => 'require',
        'page|页码' => 'require|number',
        'pageNum|每页条数' => 'require|number',
        'certificate_code|订单编号' => 'requireWith:certificate_code',
        'create_start_date|开始创建时间' => 'requireWith:create_start_date',
        'create_end_date|结束创建时间' => 'requireWith:create_end_date',
        'business_id|业务类型' => 'requireWith:business_id',
        'business_category|业务类别' => 'requireWith:business_category',
        'business_text|业务内容' => 'requireWith:business_text',
        'sale_start_date|开始销售时间' => 'requireWith:sale_start_date',
        'sale_end_date|结束销售时间' => 'requireWith:sale_end_date',
        'get_org|收证部门' => 'requireWith:get_org',
        'get_uid|收证人员' => 'requireWith:get_uid',
        'out_org|出证部门' => 'requireWith:out_org',
        'out_uid|出证人员' => 'requireWith:out_uid',
        'enterprise_name|企业名称' => 'requireWith:enterprise_name',
        'contacts|企业联系人' => 'requireWith:contacts',
        'cost_start_price|成本价格开始' => 'requireWith:cost_start_price',
        'cost_end_price|成本价格结束' => 'requireWith:cost_end_price',
        'sale_start_price|销售价格开始' => 'requireWith:sale_start_price',
        'sale_end_price|销售价格结束' => 'requireWith:sale_end_price',
        'status|状态' => 'requireWith:status',
    ];
}